package san.java.day11;

/**
 * 枚举类
 */

public enum Season implements ITest{
    SPRING("春天", "春暖花开"),
    SUMMER("夏天", "炎炎夏日"),
    AUTUMN("秋天", "秋高气爽"),
    WINTER("冬天", "寒风凛冽");

    private final String seasonName;
    private final String seasonDesc;

    private Season(String seasonName, String seasonDesc) {
        this.seasonName = seasonName;
        this.seasonDesc = seasonDesc;
    }

    public void showInfo() {
        System.out.println(this.seasonName + ": " + this.seasonDesc );
    }

    @Override
    public void test() {
        System.out.println("ITest的方法");
    }
}

interface ITest {
    void test();
}
